﻿<views:MvxWpfView 
	x:Class="Sidvall.WorkItemManager.UI.Wpf.Views.IntervalRetryPolicyView"
	xmlns:views="clr-namespace:MvvmCross.Wpf.Views;assembly=MvvmCross.Wpf"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
	xmlns:vms="clr-namespace:Sidvall.WorkItemManager.UI.ViewModels;assembly=Sidvall.WorkItemManager.UI"
	xmlns:Controls="clr-namespace:Sidvall.WorkItemManager.UI.Wpf.Controls" 
	xmlns:Converters="clr-namespace:Sidvall.UI.Wpf.Converters;assembly=Sidvall.UI.Wpf" 
	xmlns:local="clr-namespace:Sidvall.WorkItemManager.UI.Wpf.Views"
	mc:Ignorable="d" 
	d:DesignHeight="500" d:DesignWidth="600">

	<views:MvxWpfView.Resources>
		<Converters:StringToVisibilityConverter x:Key="StringToVisibilityConverter"/>
		<Converters:StringToVisibilityConverter x:Key="NotStringToVisibilityConverter" Not="True"/>
		<Converters:StringToBooleanConverter x:Key="NotStringToBooleanConverter" Not="True"/>
	</views:MvxWpfView.Resources>

	<Grid d:DataContext="{d:DesignInstance IsDesignTimeCreatable=True, Type={x:Type vms:IntervalRetryPolicyViewModel}}">
		<StackPanel>
			<Grid Margin="5,5,5,0">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="150" />
					<ColumnDefinition Width="80" />
					<ColumnDefinition />
				</Grid.ColumnDefinitions>

				<Label Content="Retry Interval:"/>
				<TextBox Grid.Column="1" Text="{Binding ActiveEntity.RetryInterval, Mode=TwoWay, StringFormat=\{0:hh\\:mm\\:ss\}}" />
			</Grid>

			<Grid Margin="5,5,5,0">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="150" />
					<ColumnDefinition Width="80" />
					<ColumnDefinition />
				</Grid.ColumnDefinitions>

				<Label Content="Max Retry Count:"/>
				<xctk:IntegerUpDown Grid.Column="1" Minimum="1" Value="{Binding ActiveEntity.MaxRetryCount}" ClipValueToMinMax="True" ParsingNumberStyle="Integer" />
			</Grid>
		</StackPanel>
	</Grid>
</views:MvxWpfView>
